# -*- coding:utf-8 -*-
from module_page.login_home.user_homepage import UserHomePage
from module_page.training.train_page import TrainEnlistPage,InformationPage


class UserAddTrainAction:

    @classmethod
    def user_add_train(cls):  # 新增培训报名
        home_page = UserHomePage()
        train_page = TrainEnlistPage()    #  培训报名对象
        information_page = InformationPage()  #  报名信息页对象
        home_page.into_train_enroll()  # 进入培训报名
        train_page.add_train()  # 新增培训报名
        # i = 0
        # while i < 2:
        #     information_page.randomadd_registration_information()  # 随机新增报名信息
        #     i = i + 1

        # train_page.click("提交按钮")


